package cn.easybuymember.dao.news;

import cn.easybuymember.pojo.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {

    List<News> selectNews(@Param("limit1") int limit1,@Param("limit2")int limit2,@Param("type")String type);

    int count(@Param("type")String type);

    int del(@Param("id")int id)throws Exception;

    int upd(@Param("id")int id,@Param("title")String title,@Param("content")String content,@Param("type")String type)throws Exception;

    int insert(@Param("title")String title,@Param("content")String content,@Param("type")String type)throws Exception;
}
